/*
 * @Author: your name
 * @Date: 2022-03-28 10:13:01
 * @LastEditTime: 2022-05-25 01:38:44
 * @LastEditors: YNT 2501512800@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \22-03-19 智慧社区\pages\repair\repaireMent\index.js
 */
import Message from '../../api/message'

Page({
  data: {
    nvabarData: {
      navigationBarTextStyle: 'black', // 胶囊主题 white || black
      navigationBarBackground: '#FEFEFE', // 导航栏背景色
      navigationBarTitleText: '公告详情',
    },
    content: '',
  },

  onLoad: function (options) {
    wx.showLoading()
    Message.release({ page_size: 1 })
      .then(({ data }) => {
        this.setData({
          content: data[0].text,
        })
      })
      .catch(({ errCode, data }) => {})
      .finally(wx.hideLoading())
  },
})
